package com.nanyang.tms.api.service.waybill;

import javax.validation.constraints.NotNull;

import com.nanyang.common.core.domain.ApiResult;
import com.nanyang.tms.api.dto.request.waybill.WaybillAddReuqest;
import com.nanyang.tms.api.dto.request.waybill.WaybillShipmentAddRequest;

public interface WaybillCoreRpcService {
/**********
 * 收货
 * @param waybillAddReuqest
 * @return
 */
public ApiResult<Boolean> saveWaybill(WaybillAddReuqest waybillAddReuqest);
/*************
 * 出货
 * @param waybillShipmentAddRequest
 * @return
 */

public ApiResult<Boolean> saveWaybillShipment(WaybillShipmentAddRequest waybillShipmentAddRequest);

/**********
 * 获取公司名称
 * @param supplierNo
 * @return
 */
public  ApiResult<String>  getCompanyNameBySupplierNo(@NotNull(message="服务商单号不能为空") String supplierNo);


} 
